+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
+2001-05-17 Joe Shaw <joe@ximian.com>
+
+ * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
+ that x_offset and y_offset must be >= 0. Clip the cursor being drawn
+ if it is only partially onscreen.
+
Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c: Make logical motion and deletion by graphemes,
g_return_if_fail (layout->default_style != NULL);
g_return_if_fail (layout->buffer != NULL);
g_return_if_fail (drawable != NULL);
- g_return_if_fail (x_offset >= 0);
- g_return_if_fail (y_offset >= 0);
g_return_if_fail (width >= 0);
g_return_if_fail (height >= 0);
else
gc = widget->style->text_gc[GTK_STATE_NORMAL];
+ gdk_gc_set_clip_rectangle(gc, &clip);
gdk_draw_line (drawable, gc,
line_display->x_offset + cursor->x - x_offset,
current_y + line_display->top_margin + cursor->y,
line_display->x_offset + cursor->x - x_offset,
current_y + line_display->top_margin + cursor->y + cursor->height - 1);
+ gdk_gc_set_clip_rectangle(gc, NULL);
cursor_list = cursor_list->next;
}